<div class="page page-current" id='protocolAdd'>
  <header class="bar bar-nav  bg-color">
  <a class="icon icon-left pull-left back cfff"></a>
    <h1 class="title protocol-title"></h1>
  </header>
<div class="content">
  <div class="list-block">
    <form id="protocol-add-form" method="post" accept-charset="utf-8" action="/userProtocol/edit">
     <ul>
      <li>
        <div class="item-content">
          <div class="item-inner">
            <div class="item-title label"><span class="point">*</span>用户协议名称</div>
            <div class="item-input">
              <input type="hidden"  class="input-nm" name="id" id="protocol-id" value="{{id}}">
              <input type="hidden"  class="input-nm" name="ktvlist" id="userproto-ktvlist">
              <input type="text" placeholder="" id="protocol-name" name="name" data-descriptions="name" data-required="true" data-conditional="name">
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
            <div class="item-title label pl08 addProtocolItem">添加协议字段</div>
            <div class="item-input">
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
                <select class="form-control selectTtv" name="kValue" id="userproto-kValue" onchange="select_onchang()">
                      <option value="" disabled selected  >请选择字段类型</option>
                </select>
                <input type="text" class="input-nm tValue"  disabled="true" placeholder="t值">
                <input type="text" class="input-nm kValues" disabled="true"  placeholder="k值">
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
                <div class="form-group">
                        <input type="text" class="input-nm vValue" name="company" placeholder="单位" >
                </div>
                <button type="button" class="field-save-btn button" onclick="field_add_btn()"  data-icon="home" disabled="true">添加字段</button>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
           <div id="user-protocol-list">
                <ul style="float:left;">
                    <li style="display: none;">id</li> 
                    <li class="liItem-kname">字段类型</li>
                    <li class="liItem-t">数据类型</li>
                    <li class="liItem-kValues kValues">k值</li>
                    <li class="liItem-t_description t_description">单位</li>
                    <li class="liItem-del">操作</li>
                </ul>
                <ul class="protocol-list-ul" style="float:left;">
                </ul> 
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
            <div class="item-title label pl08">私有协议描述</div>
            <div class="item-input">
              <textarea name="memo" data-descriptions="memo" id="protocol-memo" data-conditional="memo"></textarea>
            </div>
          </div>
        </div>
      </li>
     </ul>
    <div class="content-block">
       <div class="row">
        <div class="col-50">
          <!-- <a href="#" class="button button-big button-fill button-danger" id="subform" ><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">取消</font></font></a> -->
        <input class="button button-big button-fill button-danger" type="button" value="取消">
        </div>
        <div class="col-50">
          <!-- <a href="#" class="button button-big button-fill button-success"  onclick="tosubmit()"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">提交</font></font></a> -->
        <input class="button button-big button-fill button-success" type="submit" value="提交">
        </div>
      </div>
    </div>
    </form>
  </div>

</div>
</div>
